import java.util.Scanner;

public class lianxi5 {
   public static void main(String[] args) {
    try (Scanner scanner = new Scanner(System.in)) {
        System.out.println("身高（cm）:");
        int height = scanner.nextInt();
        System.out.println("财富：");
        double wealth = scanner.nextDouble();
        System.out.println("帅气（是/否):");
        String g = scanner.next();
        boolean handsome = g.equals("是");
        if (height >= 180 && wealth >= 10000000 && handsome) {
            System.out.println("一定嫁给他");
        } else if (height >= 180 || wealth >= 10000000 || handsome) {
            System.out.println("嫁吧，比上不足，比下有余");
        } else {
            System.out.println("不嫁");
        }
    }
   }
}
